package jgl.vajra.operator.part.order.contract;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.operator.bean.MachineGuyBean;
import jgl.vajra.operator.databinding.ActivityMachineGuyBinding;
import jgl.vajra.operator.widget.mvvm.model.BaseModel;
import jgl.vajra.operator.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.operator.widget.mvvm.viewmodel.BaseViewModel;

public class MachineGuyContract {
    public abstract static class Model extends BaseModel {
        public abstract Observable<List<MachineGuyBean>> getMachineGuyData(Map<String, Object> map);

        public abstract Observable<String> selectDefaultDriver(Map<String, Object> map);
    }

    public interface View extends BaseMVVMView {

        void onOrderReceiving();

        void onDetermine();

        void returnSelectDefaultDriver(String data);

        void returnMachineGuyData(List<MachineGuyBean> data);
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityMachineGuyBinding, Model> {

        public abstract void getMachineGuyData(Map<String, Object> map);

        public abstract void selectDefaultDriver(Map<String, Object> map);
    }
}
